VarDestclasstravel.t[2005]

Mix-in class for use with a TravelConnector whose destination may vary. To use a VarDest list it before the TravelConnector class in the class list of your object/class definition and use its caldDest method to define the expression or method yielding the connector's destination. This is only necessary if the value of this method might change in the course of one turn (when it will be evaluated multiple times), as may, for example, occur if it contains an element of randomness.

class VarDest :   object

Superclass Tree   (in declaration order)

VarDest
        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

currentDest  lastTurn 

Summary of Methods  

calcDest 

Properties  

currentDesttravel.t[2029]

Our current destination.

lastTurntravel.t[2026]
The last turn on which our destination was calculated.

Methods  

calcDest ( )travel.t[2035]

The method or expression to calculate our current destination. User code must override as required for particular cases.

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2